/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package csc668868webappteamsp12aproject1;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author apeterman
 */
public class SalesLineItem {

    private int quanitity;
    private boolean state = true;
    private String userInput = "";
    private BufferedReader bufferedreader;

    public void buying() {
        while (state) {
            System.out.println("What would you like to buy?");
            System.out.println("0010     Giraffe                  4000.00");
            System.out.println("0020     Oreo Cookies             0002.99");
            System.out.println("0030     Kung-fu Panda DVD        0015.99");
            System.out.println("0040     Teddy Bear               0023.00");
            System.out.println("0050     Gummy Bears              0001.59");

            try {
                userInput = (bufferedreader = new BufferedReader(new InputStreamReader(System.in))).readLine();
            } catch (IOException ex) {
                state = false;
                Logger.getLogger(SalesLineItem.class.getName()).log(Level.SEVERE, null, ex);
            }
            
            
            System.out.println("How many do you want?");
            try {
                quanitity = Integer.parseInt((bufferedreader = new BufferedReader(new InputStreamReader(System.in))).readLine());
            } catch (IOException ex) {
                Logger.getLogger(SalesLineItem.class.getName()).log(Level.SEVERE, null, ex);
            }


        }

    }
}
